#ifndef MAINAPP_H
#define MAINAPP_H
//
#include "mainwindowimpl.h"
#include "mainoptions.h"

#include <QApplication>
//
class MainApp : public QApplication {
		Q_OBJECT
	private slots:
		void queryQuit();
	public:
		static QStringList getCategories ( bool rebuild = false );
		void Init();
		MainApp ( int & argc, char ** argv );
		MainOptions * getOptions() {
			return &m_opt;
		}
		static QString getAppDir ( void );
		static MainApp *app;
		static QStringList supportedLanguages();
		static void setTranslation ( QString lang );
		static QString allText() {
			return tr ( "-- All --" );
		}
		MainWindowImpl *getMainWindow() const {
			return m_win;
		}
	protected:
		MainWindowImpl *m_win;
		MainOptions m_opt;
};
#endif
